package cn.zust.ly.EyExample.Ey08;

public class Main {
	public static void main(String[] args) {
		for (int i = 1000; i < 10000; i++) {
			if (isGodeNum(i)) {
				System.out.println(i);
			}
		}
	}
	static boolean isGodeNum(int x) {
		
		int a = x/1000;
		int b = (x-1000*a)/100;
		int c = (x%100)/10;
		int d = x%10;
		return a == d && b == c;
	}
}
